﻿using System;

namespace Cubicle.Core.Repository.HandleParsers
{
    public class ExcelHandleParserEmpty : ExcelHandleParserBase
    {
        // Nlog
        private static NLog.Logger _logger = NLog.LogManager.GetCurrentClassLogger();


        public ExcelHandleParserEmpty(char prefix, string name)
            : base(prefix, name) { }

        #region Overrides of HandleParser

        public override string KeyToHandle(string key)
        {
            var message = "Empty keys not allowed.";
            _logger.Error(message);
            throw new Exception(message);
        }

        public override string HandleToKey(string handle)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}